Windows 7 "Run as Administrator" Loses Mapped Drives
I'm running Windows 7 and I have a mapped drive to an O: drive. I also have an environment variable for a PATH location to sqlplusw (software that lets you connect to an Oracle database). I found that in Windows 7, you have to open the cmd prompt with "run as administrator". When I do this I lose access to my mapped drives. We have many people in our company using this, so we can't have them disconnect and remap the drive every time. Is there a way to fix or workaround this?Thanks,Scott
January 20th, 2010 11:49pm

For what it's worth ... may be not much: I had odd network problems after the Win 7 upgrade on our two PCs. Then I noticed that the upgrade had installed MS drivers for the LAN adapters. When I went tothe Intel site and installed proper updated Intel drivers, things settled down ... until i ran into the next problem.
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2010 1:56am

Scott, That has been around since Vista came out. See this discussion.http://www.vistaheads.com/forums/microsoft-public-windows-vista-general/125180-run-administrator-loses-access-mapped-drives.htmlBill
January 21st, 2010 6:10am

Thanks for your response.What I got out of that, is that I can workaround it with this... Create a file “C:\Users\Public\mapdrive.cmd” like this: @echo off Net use o: /delete Net use o: \\server\share Create this value in the registry. Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command ProcessorValue: AutoRunType: REG_SZData: C:\Users\Public\mapdrive.CMDIs this all that can be done now? There's no official fix for it that allows the "administrator" to have access to the mapped drives without doing this?
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2010 12:13am

Microsoft has a work around they don't recommend: http://www.winhelponline.com/blog/mapped-drives-are-not-seen-from-elevated-command-prompt-in-vista/ Network and Systems Manager
January 26th, 2010 9:57pm

I've tried this, but it didn't work for me. Thanks for the suggestion.
Free Windows Admin Tool Kit Click here and download it now
January 27th, 2010 7:34pm

The registry modification workaround suggested for Vista does not seem to work for Windows 7 x64. The .cmd file work around does work but is very cumbersome. Trying to get .cmd files to run with elevation to launch other applications that require mapped drive access is a big hassle. Are there any alternatives or new methods?
June 21st, 2010 7:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics